package com.wch.SpringBootTestDemo.activemq;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

/**
 * 接收消费者返回的的数据
 * @author 19821
 *
 */
@Component
public class JMSResultReturn {

	private Logger logger = LoggerFactory.getLogger(JMSResultReturn.class);
	
	@JmsListener(destination="out_queue")
	public void receiveConsumerInfo(String message){
		logger.info("JMSResultReturn:从out_queue接收到的返回报文为--"+message);
	}
}
